package com.zbkj.crmeb.user.model;

/**
 * 用户标记枚举类
 */
public enum UserMarkEnum {

    SIMPLE(0,"普通用户"),WALKER(1, "健康行者"), COUNSELOR(2, "健康辅导师"), HEALTH_MSG(3, "健康信使");

    private int index;
    private String name;

    UserMarkEnum(int index, String name) {
        this.index = index;
        this.name = name;
    }

    public static String getName(int index) {
        for (UserMarkEnum c : UserMarkEnum.values()) {
            if (c.getIndex() == index) {
                return c.name;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
